// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-10-10

#ifndef __TOOLTIP_H_COMMON_UI__
#define __TOOLTIP_H_COMMON_UI__

#pragma once
#include "wnd.h"

//##ModelId=44C4B6020243
class CJoyToolTip :
    public CJoyWnd
{
protected:
	//##ModelId=44C4B6020252
    CStringW m_tipText;
	//##ModelId=44C4B6020256
    int m_textMargin;

	//##ModelId=44C4B6020257
    virtual void CM_Draw(Graphics& graph);
public:
	//##ModelId=44C4B6020262
    CJoyToolTip(void);
	//##ModelId=44C4B6020264
    virtual ~CJoyToolTip(void);

	//##ModelId=44C4B6020267
    void SetTipText(const CString& tipText);
	//##ModelId=44C4B6020271
    void ShowTip(CJoyCtrl* pCtrl);
	//##ModelId=44C4B6020273
    void HideTip();
	//##ModelId=44C4B6020274
    bool Create();
};

#endif  // __TOOLTIP_H_COMMON_UI__
